#include <Logger.h>

#include "../impl/FileHandler.h"
#include "../impl/DefaultFormatter.h"

using namespace logging;

int main( int argc, char ** argv )
{
    FileHandler handler; handler.open( "test.txt" );
    DefaultFormatter formatter; handler.setFormatter( &formatter );

    Logger * logger = Logger::getLogger( "Test" );

    logger->addHandler( &handler );

    for( unsigned i = 0; i < 1000; i++ )
	logger->info( "Test" );

    return( 1 );
}
